package actions;


import constants.*;

import universe.Universe;
import interfaces.AgentInterface;
import interfaces.impl.Action;

public class ActionAddEffect extends Action{
	
	private AgentInterface effect;
	
	public ActionAddEffect(int priority){
		super(priority);
		this.id=Constants.ACTION_ADD_EFFECT;
		
	}
	
	public ActionAddEffect(){
		super();
		this.id=Constants.ACTION_ADD_EFFECT;
	}

	@Override
	public boolean processAction(Universe world) {
		
		target.addAgent(effect);
		
		return false;
	}

	@Override
	public String getName() {
		// TODO Auto-generated method stub
		return "ADD EFFECT";
	}

	public AgentInterface getEffect() {
		return effect;
	}

	public void setEffect(AgentInterface effect) {
		this.effect = effect;
	}
	
	

}
